import request from '@/utils/request'

const consultant = {
    // 查询列表
    getList(query) {
        return request({
          url: '/com.mmk.reservation.api.hospital.repayment.AdminConsultantProvider/1.0.0/getList.html',
          method: 'post',
          data: query
        })
    },
    // 获取医院名字
    getHospitalName(query) {
        return request({
          url: '/com.mmk.hospitaladmin.api.OpenMmkHospitalAdminProvider/1.0.0/getHospitalName.html',
          method: 'post',
          data: query
        })
    },
    // 状态修改
    changeStatus(query){
        return request({
            url:'/com.mmk.reservation.api.hospital.repayment.AdminConsultantProvider/1.0.0/openOrCloseConsultant.html',
            method: 'post',
            data: query
        })
    },
    // 删除
    delete(query){
        return request({
            url:'/com.mmk.reservation.api.hospital.repayment.AdminConsultantProvider/1.0.0/deleteConsultant.html',
            method: 'post',
            data: query
        })
    },
    // 添加
    add(query){
        return request({
            url:'/com.mmk.reservation.api.hospital.repayment.AdminConsultantProvider/1.0.0/saveConsultant.html',
            method: 'post',
            data: query
        })
    },
    // 编辑
    edit(query){
        return request({
            url:'/com.mmk.reservation.api.hospital.repayment.AdminConsultantProvider/1.0.0/updateConsultant.html',
            method: 'post',
            data: query
        })
    },
}


export default consultant